<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var sum = (function(n){
				if (n <= 1){
					return 1;
				}
				return n + arguments.callee(n - 1);
			})(10);
			console.log(sum);
		</script>
	</body>
</html>
